package org.jeecg.modules.exPingbiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.exPingbiao.entity.ExPingbiaoExpert;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 评标
 * @Author: jeecg-boot
 * @Date: 2024-11-09
 * @Version: V1.0
 */
public interface ExPingbiaoExpertMapper extends BaseMapper<ExPingbiaoExpert> {


    List<ExPingbiaoExpert> selectByExpertIdAndBusinessIdList(String expertId, List<String> businessIdList);

    /**
     * 根据实际业务ID以及专家ID查询
     *
     * @param expertId
     * @param realBusinessIdList
     * @return
     */
    List<ExPingbiaoExpert> selectByExpertIdAndRealBusinessIdList(String expertId, List<String> realBusinessIdList);

    /**
     * 根据实际业务ID以及专家ID查询
     *
     * @param tenderId
     * @param realBusinessIdList
     * @return
     */
    List<ExPingbiaoExpert> selectByTenderIdAndRealBusinessIdList(String tenderId, List<String> realBusinessIdList);

    /**
     * 回退状态
     *
     * @param id
     * @param rejectRemark
     * @param completeStatus
     */
    void backEdit(@Param("id") String id, @Param("rejectRemark") String rejectRemark, @Param("completeStatus") String completeStatus);

    List<ExPingbiaoExpert> selectBySectionIdAndBusinessId(String sectionId, String businessId);

    List<ExPingbiaoExpert> selectBySectionIdAndBusinessIdTenderListId(String sectionId, String businessId,String tenderListId);

    /**
     * 查询被驳回的
     * @param bidSectionId
     * @param businessId
     * @return
     */
    List<String> selectRejectTenderIdList(String bidSectionId , String businessId);

    /**
     * 查询非当前节点下被驳回的
     * @param bidSectionId
     * @param excludeBusinessId
     * @return
     */
    List<ExPingbiaoExpert> selectRejectByExBusinessId(String bidSectionId , String excludeBusinessId,String completeStatus);

    /**
     * 根据实际业务ID以及专家ID查询
     *
     * @param realBusinessIdList
     * @return
     */
    List<ExPingbiaoExpert> sumByRealBusinessIdList(String realBusinessId);

}
